	<!-- left column start -->
	<?php //@todo убрать ошибки в js в корневой категории?>
			<div class="left-column">
				<?php 
			     $navigate = array(
			          array('href'=>'/category/', 'text'=>'Места'),
			     );
			     if($this->currentCategory){
			          if($this->parent){
			               array_push($navigate, array('href'=>'/category/index/id/'.$this->parent->id, 'text'=>$this->parent->name));
			               $currentCategoryId = $this->parent->id;
			               if(!$currentCategoryId){
			               		$currentCategoryId = 0;
			               }
			               ?>
			  				
			                    <script type="text/javascript">
			                         var currentCategoryId = <?=$currentCategoryId?>;
			                    </script>
			               <?php      
			          } else {  
			          	   $currentCategoryId = $this->currentCategory->id;
			               if(!$currentCategoryId){
			               		$currentCategoryId = 0;
			               }
			                    ?>
			                    <script type="text/javascript">
			                         var currentCategoryId = <?=$currentCategoryId?>; 
			                    </script>
			               <?php
			          } 
			           array_push($navigate, array('href'=>'/category/index/id/'.$this->currentCategory->id, 'text'=>$this->currentCategory->name));
			     }else {
			               ?>
			                    <script type="text/javascript">
			                         var currentCategoryId = 0;
			                    </script>
			               <?php
			     }
			?>
<?=$this->navigate($navigate,'<span><a href="/place/add/category_id/' . $this->parent->id . '">Добавить место</a></span>')?>
				<div class="asid-h">
					<div class="asid1">
						<?=$this->categorys()?>
				</div>
				<div class="asid2">
					<div class="title-c">
						<h2>Новые места</h2>
					</div>
					<?php foreach ($this->places as $place): ?>
					<div class="box">
						<div class="heading">
							<?=$this->rating($place['rating'], $place['id'], 'place')?>
							<h3><a href="/place/view/id/<?=$place['id']?>"><?=$place['name']?></a></h3>
						</div>
						<?php 
							$placeModel  = new Model_Place();
							if(!is_array($place)){
								$place = $place->toArray();
							}
							$placeModel->fill($place);
							$currentCategorys = $placeModel->getCategorys();
						?>
						<ul class="op-list">
						<?php foreach($currentCategorys as $category):?>
							<li><a href="/category/index/id/<?=$category['id']?>"><?=$category['name']?></a></li>
						<?php endforeach;?>
						</ul>
						 
						<div class="text">
						<?php $album = new ZloY_Album_Place($place['id']);?>
							<?php if($album->getMainImage('s')):?>
								<div class="image"><img src="<?=$album->getMainImage('s')?>" alt="" /></div>
							<?php endif;?>
							<ul class="address-list">
								<li class="add"><?=$place['address']?></li>
								<li class="mob"><?=$place['phone']?></li>
								<!--
								<li class="tel">23-30-68</li>
							--></ul>
							<div class="posew">
								<?=$this->iWasHere($place['was'], $place['id'])?>
								<span><?=$place['comment_count']?></span>
							</div>
						</div>
					</div>
					<?php endforeach;?>
					<?= $this->paginationControl($this->places, 'Sliding', 'paginator.phtml'); ?>
					<?php //@todo поправить пагинатор?>
					<!--
					<div class="pager">
						<div class="center">
							<div class="w1">
								<div class="w2">
									<ul>
										<li class="active"><a href="#">1</a></li>
										<li><a href="#">2</a></li>
										<li><a href="#">3</a></li>
										<li><a href="#">4</a></li>
										<li><a href="#">5</a></li>
										<li><a href="#">6</a></li>
										<li><a href="#">7</a></li>
										<li><a href="#">8</a></li>
										<li><a href="#">9</a></li>
										<li>...</li>
										<li><a href="#">250</a></li>
									</ul>
								</div>
							</div>
						</div>
					</div>
				--></div>
			</div>
			</div>
			<!-- left column end -->